<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?>	<table id="tt" class="easyui-datagrid"></table>
	
	
	<div id="tb" style="padding:10px;5px;height:auto">
		<div>
			编号: <input id="id" class="easyui-textbox" style="width:80px">
			用户名: <input id="name" class="easyui-textbox" style="width:80px">
			添加日期 从: <input class="easyui-datebox" style="width:80px">
			到: <input class="easyui-datebox" style="width:80px">

			<a href="#" onclick="doSearch()" class="easyui-linkbutton" iconCls="icon-search">搜索</a>
		</div>
	</div>
	<div id="win"></div>

<script language="javascript">

$(function(){
	$('#tt').datagrid({
		url:'<?php echo site_url('address/data');?>',
		pagination:true,
		pageSize:20,
		toolbar:'#tb',
		checkbox:true,
		fit:true,
		border:false,
		idField:'id',
		'columns':[[
			{field:'ck',checkbox:'true'},
			{field:'id',width:'9%',title:'编号'},
			{field:'coin',width:'15%',title:'币种'},
			{field:'username',width:'15%',title:'用户名'},
			{field:'code',width:'15%',title:'钱包地址'},
			{field:'add_time',width:'10%',title:'添加时间'},
		]],
	});
});
function doSearch(){
	$('#tt').datagrid('load',{
		id: $('#id').val(),
		name: $('#name').val()
	});
}
</script>